'use strict';

const merchantController = require('../../app/controller/merchant.controller.js');

module.exports = function(app) {
    app.route('/merchant/register')
        .post(merchantController.merchantRegister);

    app.route('/merchant/login')
        .post(merchantController.getMerchantByLogin);

    app.route('/merchant/getMerchantByIcnum')
        .get(merchantController.getMerchantByIcnum);  
          
    app.route('/merchant/merchantUpdate')
        .post(merchantController.merchantUpdate);
};